<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/12/19
  Time: 0:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登陆页</title>
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="../login/login.css">
</head>
<body >

<div class="container" style="margin-top: 10em;">
    <div class="row">
        <div>
            <form class="form-signin" action="/mylogin" method="post">
                <div id="aa" class="alert alert-warning" style="display:none;">
                    <a href="#" class="close" data-dismiss="alert">&times;</a>
                    <strong>警告！${msg}</strong>
                </div>
                <h2 class="form-signin-heading">家庭记账系统</h2>
                <div class="form-group">
                    <input type="text" class="form-control" id="inputEmail3" name="j_username" placeholder="用户名或电子邮件" autofocus>
                </div>
                <div class="form-group">
                    <input type="password" class="form-control" id="inputPassword3" name="j_password" placeholder="密　码">
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox" value="remember-me"> 记住我
                    </label>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-lg btn-primary btn-block">登录</button>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="backstretch" style="left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 100%; width: 100%; z-index: -999999; position: fixed;"><img src="../login/login-bg1.jpg" style="position: absolute; margin: 0px; padding: 0px; border: none; width: 100%; height: 100%; max-width: none; z-index: -999999; left: 0px; top: 0px;"></div>
<script>
    $(function(){
        var msg = "${msg}";
        if(msg!=""){
            $("#aa").show();
        }
    });

</script>
</body>
</html>
